package com.wondersgroup.fjzlpt.console.controller.view.menu;

import javax.servlet.http.HttpServletRequest;

import com.wondersgroup.fjzlpt.console.constant.MenuActionType;
import com.wondersgroup.fjzlpt.console.utils.ControllerCommonUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("menu")
public class MenuController {


	@RequestMapping("/index.html")
	public String menu_index(){
		return "menu/index";
	}
	
	@RequestMapping("/manager.html")
	public String manager(HttpServletRequest request){
		request.setAttribute("actionTypes", MenuActionType.getAll());
		request.setAttribute("yxpjOnline", ControllerCommonUtils.yxpjOnline);
		return "menu/manager";
	}

	@RequestMapping("/queryFormList.html")
	public String queryFormList(){
		return "menu/queryFormList";
	}

}
